import org.gradle.api.invocation.Gradle

/**
 * create by liaohailong
 * 2024/4/30 23:41
 * desc:
 */
object UnitTestCoverage {

    fun isUnitTestCoverageBuild(gradle: Gradle): Boolean {
        for (s in gradle.startParameter.taskNames) {
            if (s.contains("test") || s.contains("kover")) {
                return true
            }
        }
        return false
    }
}